var app = getApp();
Page({

  /**
   * 页面的初始数据
   */
  data: {
    orderList:[{
      id:"",
      title:"",
      name:"",
      price:"",
      count:"",
      number:"",
      total:""
    }]
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    var that = this

    wx.getStorage({
      key: 'openid',
      success: function(res) {
        let openid = res.data

        wx.request({
          url: app.globalData.URL + '/app/team/orderList?orderState=0&openid='+ openid,
          success: function (res) {
            that.setData({
              orderList: res.data.orderList
            })
          }
        })
      },
    })
    
  },

  

  
})